#include "stdafx.h"
#include "DataFormatLua.h"
#include "Manager/DataManagerLua.h"



bool
DataFormatLua::load(const string& fileName, IDataManager* mgr)
{
	DataManagerLua::push(Lua::instance()->state(), mgr);
	Lua::instance()->push(fileName);	// file name as table name of the data
	return Lua::instance()->call("onLoadDatas", 2, 0);
}

bool
DataFormatLua::save(const string& fileName, IDataManager* mgr)
{
	return true;
}